const platformLayout = () => import('@/layout/platforms/douyin/index.vue')

const douyinRoutes = [
  // 平台使用
  {
    path: '/douyin',
    component: platformLayout,
    name: '',
    meta: { title: '抖音', roles: ['customer'] },
    children: [
      {
        path: '/douyin',
        name: 'douyin_index',
        component: () => import('@/views/platform/douyin/index.vue'),
        meta: { title: '控制台' }
      },
      {
        path: 'addon',
        name: 'douyin_addon',
        component: () => import('@/views/platform/douyin/addon.vue'),
        meta: { title: '应用管理' }
      },
      {
        path: 'user',
        name: 'douyin_user',
        component: () => import('@/views/platform/douyin/user.vue'),
        meta: { title: '用户管理' }
      },
      {
        path: 'setting',
        name: 'douyin_setting',
        component: () => import('@/views/platform/douyin/setting.vue'),
        meta: { title: '系统设置' }
      }
    ]
  }
]

export default douyinRoutes
